ul {
  display: flex;
}

ul li {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
}


ul li.active {
  color: red;
  background-color: skyblue;
}